package com.farah.lease.common.utils;

import java.util.Random;

/**
 * @Author 不爱跑步的法拉韶
 * @Date 2024-06-27__10:49
 * @Description 生成随机数
 **/
public class VerifyCodeUtil {
    public static String getVerifyCode(int length){
        StringBuilder builder =new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < length; i++) {
            builder.append(random.nextInt(10));
        }
        return builder.toString();
    }
}
